package com.heima.string.string;

import java.util.Scanner;

public class StringDemo04 {
    public static void main(String[] args) {
        /**
         * 遍历字符串
         * char charAt(int index): 根据索引返回字符
         * int length(): 返回字符串的长度
         */
        Scanner sc = new Scanner(System.in);
        String s1 = sc.next();
        for (int i = 0; i < s1.length(); i++) {
            System.out.println(s1.charAt(i));
        }
    }
}
